package com.awo.facedetect.widget;

import android.graphics.Rect;

public class FaceDrawInfo {
    private int faceLeftTopX = 0;
    private int faceLeftTopy = 0;
    private int faceWidth = 30;
    private int faceHeight = 30;

    public FaceDrawInfo() { }

    public FaceDrawInfo(int faceLeftTopX, int faceLeftTopy, int faceWidth, int faceHeight) {
        this.faceLeftTopX = faceLeftTopX;
        this.faceLeftTopy = faceLeftTopy;
        this.faceWidth = faceWidth;
        this.faceHeight = faceHeight;
    }

    public Rect getFaceRect() {
        return new Rect(faceLeftTopX, faceLeftTopy, faceLeftTopX + faceWidth, faceLeftTopy + faceHeight);
    }

    public int getFaceLeftTopX() {
        return faceLeftTopX;
    }

    public void setFaceLeftTopX(int faceLeftTopX) {
        this.faceLeftTopX = faceLeftTopX;
    }

    public int getFaceLeftTopy() {
        return faceLeftTopy;
    }

    public void setFaceLeftTopy(int faceLeftTopy) {
        this.faceLeftTopy = faceLeftTopy;
    }

    public int getFaceWidth() {
        return faceWidth;
    }

    public void setFaceWidth(int faceWidth) {
        this.faceWidth = faceWidth;
    }

    public int getFaceHeight() {
        return faceHeight;
    }

    public void setFaceHeight(int faceHeight) {
        this.faceHeight = faceHeight;
    }
}
